package com.es.service.impl;

import com.es.dao.TeacherDao;
import com.es.entity.Teacher;
import com.es.service.TeacherService;

public class TeacherServiceImpl implements TeacherService {

    private TeacherDao dao;

    @Override
    public int save(Teacher teacher) {
        return dao.save(teacher);
    }

    public TeacherDao getDao() {
        return dao;
    }

    public void setDao(TeacherDao dao) {
        this.dao = dao;
    }
}
